require 'socket'

socket = Socket.new(:INET,:STREAM)

remote_addr = Socket.pack_sockaddr_in(80,'www.qq.com')

socket.connect(remote_addr)